<%@page import="com.sun.org.apache.bcel.internal.generic.LUSHR"%>
<%@page import="model.Communication"%>
<%@page import="dao.SearchData"%>
<%@page import="java.util.ArrayList"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tìm Kiếm</title>
<link rel="icon" href="image/imageWeb/orbz-fire-icon.png">
<link rel="stylesheet" href="css/skeleton.css" />
<link rel="stylesheet" href="css/FastReg.css">
</head>
<%
	ArrayList<Communication> list = null;
	list = (ArrayList<Communication>) request
			.getAttribute("searchContent");
	if (list == null) {
		list = new ArrayList<Communication>();
	}
	int size = list.size();
	if (size > 20) {
		size = 20;
	}
%>
<style>
#container {
	background: url("image/imageWeb/bg3.png") center top no-repeat;
	width: 100%;
	height: 1800px;
	overflow: hidden;
	margin: 0 auto;
}
</style>
<body id="body">
	<div id="container">
		<div id="lazy">
			<%@ include file="LazyRig.jsp"%>
			<%@ include file="Login1.jsp"%>
			<jsp:include page="banner.jsp"></jsp:include>
		</div>
		<div id="Layout">
			<div id="head1">
				<div class="headbutton">
					<embed id="Advertisement" width="210" height="100"
						allowscriptaccess="always" wmode="transparent" quality="high"
						name="Advertisement" style="" src="video/start1.swf"
						type="application/x-shockwave-flash">
				</div>
			</div>
			<div id="head2">
				<%@ include file="Header.jsp"%>
			</div>
			<div id="headContent"></div>
			<div id="midF">
				<embed id="Advertisement" width="500" height="274"
					allowscriptaccess="always" wmode="transparent" quality="high"
					name="Advertisement" style="" src="video/fire.swf"
					type="application/x-shockwave-flash">
			</div>
			<div id="content">
				<div id="sidebar">
					<%@ include file="nav-left.jsp"%>
				</div>
				<div id="mainColumn">
					<div id="StaticTopPanel">
					<u>Tìm kiếm</u>
					
					</div>
					<div id="StaticOuter">

						<%
							if (size == 0) {
						%>
						<center>
							<h3>Không tìm thấy kết quả nào</h3>
						</center>
						<%
							} else {
						%>
						<p></p>
						<form action="SearchDetail" method="post">
							<%
								for (int i = 0; i < size; i++) {
										long a = list.get(i).getTimeContent();
							%>
							<p>
								<a href="SearchDetail?search=<%=a%>"> <%=list.get(i).getTitle()%>
								</a>
							<p>
								<%
									}
								%>
						</form>
						
					
					<%} %>
					</div>
				</div>
			</div>
			<div id="footer"></div>
		</div>
	</div>
</body>
</html>